#!/bin/sh
if [ "$1" = "-r" ]; then
  rm -rf ../www && mkdir ../www && grunt build && cp -r ./dist/* ../www && cd .. && phonegap run android && cp ./platforms/android/bin/Memories-debug.apk ../Memories-debug.apk
else
  rm -rf ../www && mkdir ../www && grunt build && cp -r ./dist/* ../www && cd .. && phonegap run android
fi